import http from "../../utility/request.js";
// import qs from 'qs'
const baseUrl = "http://47.109.157.141:8449/front";
// const baseUrl = process.env.NODE_ENV === "development" ? "http://testapi.relaverse.cn/qsxz/sleep" : "http://testapi.relaverse.cn/qsxz/sleep"; // 轻松睡眠后台服务
// const baseUrl = process.env.NODE_ENV === "development" ? "https://tpost.relaverse.cn/qsxz/sleep" : "https://tpost.relaverse.cn/qsxz/sleep"; // 轻松睡眠后台服务

// const token =
// 	"Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleV8iOiIxMzQifQ.DOMtyIOufsgdWgpQ3sM9GE-qig_ZI9Nr-rCQFP0OJgIubn_OfZJXArSHhKjTDoFmE4EvYWLGZGXreHtX-J3Ocw";

// 轻松小镇token  Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjgyMzI1NCIsImlzcyI6IjgyMzI1NCJ9.a10OjmYZhiIktY83qez6K3zMoZ4lYdGypQLBHd7blBk
/**
 * 按日查询我的戒指数据--心跳
 * @param {*} data
 * @returns
 */
export const queryMyHeartInfoByDay = (data) =>
	http.post(`/rgUserRingReport/queryMyHeartInfoByDay`, {
		data,
		baseUrl,
	});

/**
 * 按周查询我的戒指数据--心跳
 * @param {*} data
 * @returns
 */
export const queryMyHeartInfoByWeek = (data) =>
	http.post(`/rgUserRingReport/queryMyHeartInfoByWeek`, {
		data,
		baseUrl,
	});

/**
 * 按月查询我的戒指数据--心跳
 * @param {*} data
 * @returns
 */
export const queryMyHeartInfoByMonth = (data) =>
	http.post(`/rgUserRingReport/queryMyHeartInfoByMonth`, {
		data,
		baseUrl,
	});

/**
 * 按日查询HRV
 * @param {*} data
 * @returns
 */
export const queryMyHrvInfoByDay = (data) =>
	http.post(`/rgUserRingReport/queryMyHrvInfoByDay`, {
		data,
		baseUrl,
	});

/**
 * 按周查询HRV
 * @param {*} data
 * @returns
 */
export const queryMyHrvInfoByWeek = (data) =>
	http.post(`/rgUserRingReport/queryMyHrvInfoByWeek`, {
		data,
		baseUrl,
	});

/**
 * 按月查询HRV
 * @param {*} data
 * @returns
 */
export const queryMyHrvInfoByMonth = (data) =>
	http.post(`/rgUserRingReport/queryMyHrvInfoByMonth`, {
		data,
		baseUrl,
	});

/**
 * 按日查询我的戒指数据--血氧
 * @param {*} data
 * @returns
 */
export const queryMyBloodOxInfoByDay = (data) =>
	http.post(`/rgUserRingReport/queryMyBloodOxInfoByDay`, {
		data,
		baseUrl,
	});

/**
 * 按日查询我的戒指数据--血氧
 * @param {*} data
 * @returns
 */
export const queryMyBloodOxInfoByWeek = (data) =>
	http.post(`/rgUserRingReport/queryMyBloodOxInfoByWeek`, {
		data,
		baseUrl,
	});

/**
 * 按日查询我的戒指数据--血氧
 * @param {*} data
 * @returns
 */
export const queryMyBloodOxInfoByMonth = (data) =>
	http.post(`/rgUserRingReport/queryMyBloodOxInfoByMonth`, {
		data,
		baseUrl,
	});

/**
 * 按日查询我的戒指数据--压力值
 * @param {*} data
 * @returns
 */
export const queryMyPressureInfoByDay = (data) =>
	http.post(`/rgUserRingReport/queryMyPressInfoByDay`, {
		data,
		baseUrl,
	});

/**
 * 按周查询我的戒指数据--压力值
 * @param {*} data
 * @returns
 */
export const queryMyPressureInfoByWeek = (data) =>
	http.post(`/rgUserRingReport/queryMyPressInfoByWeek`, {
		data,
		baseUrl,
	});

/**
 * 按月查询我的戒指数据--压力值
 * @param {*} data
 * @returns
 */
export const queryMyPressureInfoByMonth = (data) =>
	http.post(`/rgUserRingReport/queryMyPressInfoByMonth`, {
		data,
		baseUrl,
	});

/**
 * 按日查询我的戒指数据--体温
 * @param {*} data
 * @returns
 */
export const queryMyTemperatureInfoByDay = (data) =>
	http.post(`/rgUserRingReport/queryMyTemperatureInfoByDay`, {
		data,
		baseUrl,
	});

/**
 * 按周,月查询我的戒指数据--体温
 * @param {*} data
 * @returns
 */
export const queryMyTemperatureInfoByWeek = (data) =>
	http.post(`/rgUserRingReport/queryMyTemperatureInfoByWeek`, {
		data,
		baseUrl,
	});

/**
 * 按月查询我的戒指数据--体温
 * @param {*} data
 * @returns
 */
export const queryMyTemperatureInfoByMonth = (data) =>
	http.post(`/rgUserRingReport/queryMyTemperatureInfoByMonth`, {
		data,
		baseUrl,
	});

/**
 * 按日查询我的戒指数据--步數
 * @param {*} data
 * @returns
 */
export const queryMyStepInfoByDay = (data) =>
	http.post(`/rgUserRingReport/queryMyStepInfoByDay`, {
		data,
		baseUrl,
	});

/**
 * 按周查询我的戒指数据--步數
 * @param {*} data
 * @returns
 */
export const queryMyStepInfoByWeek = (data) =>
	http.post(`/rgUserRingReport/queryMyStepInfoByWeek`, {
		data,
		baseUrl,
	});

/**
 * 按周查询我的戒指数据--步數
 * @param {*} data
 * @returns
 */
export const queryMyStepInfoByMonth = (data) =>
	http.post(`/rgUserRingReport/queryMyStepInfoByMonth`, {
		data,
		baseUrl,
	});

/**
 * 按日查询我的戒指数据--睡觉数据
 * @param {*} data
 * @returns
 */
export const queryMySleepInfoByDay = (data) =>
	http.post(`/rgUserRingReport/queryMySleepInfoByDay`, {
		data,
		baseUrl,
	});

/**
 * 按周查询我的戒指数据--睡觉数据
 * @param {*} data
 * @returns
 */
export const queryMySleepInfoByWeek = (data) =>
	http.post(`/rgUserRingReport/queryMySleepInfoByWeek`, {
		data,
		baseUrl,
	});

/**
 * 按月查询我的戒指数据--睡觉数据
 * @param {*} data
 * @returns
 */
export const queryMySleepInfoByMonth = (data) =>
	http.post(`/rgUserRingReport/queryMySleepInfoByMonth`, {
		data,
		baseUrl,
	});
